<template>
    <div class="login">
        <h2>登陆页面</h2>
        <button @click="clicklogin">点击登录</button>
    </div>
</template>
<script setup>
import { useRouter } from "vue-router"
const router = useRouter()
function clicklogin() {
    localStorage.setItem("token", "xiaoran")
    router.push({
        path: "/order"
    })
}
</script>
<style scoped lang="less"></style>